Optimal. Leaf size=239 \[ -\frac {2 \sqrt {-x^3-1}}{x-\sqrt {3}+1}-\frac {2 \sqrt {2} (x+1) \sqrt {\frac {x^2-x+1}{\left (x-\sqrt {3}+1\right )^2}} F\left (\sin ^{-1}\left (\frac {x+\sqrt {3}+1}{x-\sqrt {3}+1}\right )|-7+4 \sqrt {3}\right )}{\sqrt [4]{3} \sqrt {-\frac {x+1}{\left (x-\sqrt {3}+1\right )^2}} \sqrt {-x^3-1}}+\frac {\sqrt [4]{3} \sqrt {2+\sqrt {3}} (x+1) \sqrt {\frac {x^2-x+1}{\left (x-\sqrt {3}+1\right )^2}} E\left (\sin ^{-1}\left (\frac {x+\sqrt {3}+1}{x-\sqrt {3}+1}\right )|-7+4 \sqrt {3}\right )}{\sqrt {-\frac {x+1}{\left (x-\sqrt {3}+1\right )^2}} \sqrt {-x^3-1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 239, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {304, 219, 1879} \[ -\frac {2 \sqrt {-x^3-1}}{x-\sqrt {3}+1}-\frac {2 \sqrt {2} (x+1) \sqrt {\frac {x^2-x+1}{\left (x-\sqrt {3}+1\right )^2}} F\left (\sin ^{-1}\left (\frac {x+\sqrt {3}+1}{x-\sqrt {3}+1}\right )|-7+4 \sqrt {3}\right )}{\sqrt [4]{3} \sqrt {-\frac {x+1}{\left (x-\sqrt {3}+1\right )^2}} \sqrt {-x^3-1}}+\frac {\sqrt [4]{3} \sqrt {2+\sqrt {3}} (x+1) \sqrt {\frac {x^2-x+1}{\left (x-\sqrt {3}+1\right )^2}} E\left (\sin ^{-1}\left (\frac {x+\sqrt {3}+1}{x-\sqrt {3}+1}\right )|-7+4 \sqrt {3}\right )}{\sqrt {-\frac {x+1}{\left (x-\sqrt {3}+1\right )^2}} \sqrt {-x^3-1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 219
Rule 304
Rule 1879
Rubi steps
\begin {align*} \int \frac {x}{\sqrt {-1-x^3}} \, dx &=-\left (\sqrt {2 \left (2+\sqrt {3}\right )} \int \frac {1}{\sqrt {-1-x^3}} \, dx\right )+\int \frac {1+\sqrt {3}+x}{\sqrt {-1-x^3}} \, dx\\ &=-\frac {2 \sqrt {-1-x^3}}{1-\sqrt {3}+x}+\frac {\sqrt [4]{3} \sqrt {2+\sqrt {3}} (1+x) \sqrt {\frac {1-x+x^2}{\left (1-\sqrt {3}+x\right )^2}} E\left (\sin ^{-1}\left (\frac {1+\sqrt {3}+x}{1-\sqrt {3}+x}\right )|-7+4 \sqrt {3}\right )}{\sqrt {-\frac {1+x}{\left (1-\sqrt {3}+x\right )^2}} \sqrt {-1-x^3}}-\frac {2 \sqrt {2} (1+x) \sqrt {\frac {1-x+x^2}{\left (1-\sqrt {3}+x\right )^2}} F\left (\sin ^{-1}\left (\frac {1+\sqrt {3}+x}{1-\sqrt {3}+x}\right )|-7+4 \sqrt {3}\right )}{\sqrt [4]{3} \sqrt {-\frac {1+x}{\left (1-\sqrt {3}+x\right )^2}} \sqrt {-1-x^3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.00, size = 42, normalized size = 0.18 \[ \frac {x^2 \sqrt {x^3+1} \, _2F_1\left (\frac {1}{2},\frac {2}{3};\frac {5}{3};-x^3\right )}{2 \sqrt {-x^3-1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.76, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-\frac {\sqrt {-x^{3} - 1} x}{x^{3} + 1}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x}{\sqrt {-x^{3} - 1}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 160, normalized size = 0.67 \[ -\frac {2 i \sqrt {3}\, \sqrt {i \left (x -\frac {1}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}\, \sqrt {\frac {x +1}{\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, \sqrt {-i \left (x -\frac {1}{2}+\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}\, \left (\left (\frac {3}{2}+\frac {i \sqrt {3}}{2}\right ) \EllipticE \left (\frac {\sqrt {3}\, \sqrt {i \left (x -\frac {1}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}}{3}, \sqrt {\frac {i \sqrt {3}}{\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\right )-\EllipticF \left (\frac {\sqrt {3}\, \sqrt {i \left (x -\frac {1}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}}{3}, \sqrt {\frac {i \sqrt {3}}{\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\right )\right )}{3 \sqrt {-x^{3}-1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x}{\sqrt {-x^{3} - 1}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 230, normalized size = 0.96 \[ -\frac {2\,\left (\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\mathrm {F}\left (\mathrm {asin}\left (\sqrt {\frac {x+1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\right )\middle |-\frac {\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}\right )-\left (-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\mathrm {E}\left (\mathrm {asin}\left (\sqrt {\frac {x+1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\right )\middle |-\frac {\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}\right )\right )\,\left (\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\sqrt {x^3+1}\,\sqrt {\frac {x-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\sqrt {\frac {x+1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\sqrt {\frac {\frac {1}{2}-x+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}}{\sqrt {-x^3-1}\,\sqrt {x^3+\left (-\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )-1\right )\,x-\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.84, size = 32, normalized size = 0.13 \[ - \frac {i x^{2} \Gamma \left (\frac {2}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, \frac {2}{3} \\ \frac {5}{3} \end {matrix}\middle | {x^{3} e^{i \pi }} \right )}}{3 \Gamma \left (\frac {5}{3}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________